package entity

type GameLevel struct {
	Id                 int64  `gorm:"column:id;primary_key" json:"id"`
	Desc               string `gorm:"column:desc;type:varchar(255);not null" json:"desc"`
	Weight             int    `gorm:"column:weight;type:integer;not null" json:"weight"`
	Type               int    `gorm:"column:type;type:integer;not null" json:"type"`
	ParentId           int64  `gorm:"column:parent_id;type:bigint;not null" json:"parent_id"`
	QuestionCount      int64  `gorm:"column:question_count;type:bigint;not null" json:"question_count"`
	EssayQuestionCount int64  `gorm:"column:essay_question_count;type:bigint;not null" json:"essay_question_count"`
	Threshold          int    `gorm:"column:threshold;type:integer;not null" json:"threshold"`
	StarZone           string `gorm:"column:star_zone;type:varchar(255);not null" json:"star_zone"`
	Image              string `gorm:"column:image;type:varchar(255);not null" json:"image"`
	CreatedAt          int64  `gorm:"column:created_at;type:bigint;not null" json:"created_at"`
	UpdatedAt          int64  `gorm:"column:updated_at;type:bigint;not null" json:"updated_at"`
}

func (g *GameLevel) TableName() string {
	return "game_levels"
}
